package liangtWorkSpace.factory.headFirstFactory.factory;

import java.util.ArrayList;

/**
 * @ClassName Pizza
 * @Description : 披萨
 * @Author : LiangT
 * @Date : 2020/7/3 11:15
 */
public abstract class Pizza {
    String name;
    String dough;
    String sauce;
    ArrayList topping = new ArrayList();
    void prepare() {
        System.out.println("Preparing "+ name);
        System.out.println("Tossing douh... ");
        System.out.println("Adding sauce... ");
        System.out.println("Adding Toppings;  ");
        for (int i = 0; i < topping.size();i++){
            System.out.println("       " + topping.get(i));
        }
    }

    void bake(){
        System.out.println("Bake for 25 minutes at 350 ");
    }

    void cut(){
        System.out.println("Cutting the pizza into diago... ");
    }

    void box(){
        System.out.println("Place pizza in official PizzaStore box");
    }

    public String getName() {
        return name;
    }
}
